SUBDIR lists (recursive) all subfolders and files under given folder [sub,fls] = subdir(CurrPath) ARGUMENTS CurrPath ... pth as outputted from uigetfolder RETURNS SUB ... path of each subfolder as string array FLS ... filenames as string array NOTES use sort([F{:}]) to get sorted list of all filenames. See also DIR, CD Created by Elmar Tarajan [Elmar.Tarajan@Mathworks.de] 07-Dez-2004 updated by phil dixon october 2011 - works with MAC platorm